<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>16_数组方法-对原数组没有影响的方法-toString-valueOf</title>
    </head>
    <body>
        <script>
            // (11) toString
            // 将数组变成字符串
            // var arr = [1,2,3,4,5];
            // var a = arr.toString();
            // console.log(a);

            // (12) valueOf 
            // 返回的是当前数组
            var arr = [1,2,3,4,5];
            var a = arr.valueOf();
            console.log(a); 
        </script>
    </body>
</html>